package com.example.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_order")
public class Order {
    @TableField("user_id")
    Integer uid;//操作用户的id
    @TableId("order_id")
    String orderCode;
    @TableField("payment")
    BigDecimal sum;
    @TableField(exist = false)
    Integer totalNumber;
    String address;
    String post;
    @TableField("buyer_nick")
    String receiver;
    String mobile;
    @TableField("buyer_message")
    String userMessage;//用户留言
    @TableField("create_time")
    Date createDate;//订单生成日期
    @TableField("payment_time")
    Date payDate;//支付日期
    @TableField("deliver_time")
    Date deliverDate;//发货日期
    @TableField("confirm_time")
    Date confirmDate;//确认收货日期
    Integer status;//状态字符显示
    @TableField(exist = false)
    List<OrderItem> orderItems;
    Integer hidden ;
}
